const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 用户的token
  token: state => state.user.token,
  // 用户的id
  userId: state => state.user.userInfo.userId,
  // 用户头像
  staffPhoto: state => state.user.userInfo.staffPhoto,
  // 公司id
  companyId: state => state.user.userInfo.companyId,
  // 菜单路由
  routes: state => state.permission.routes
}
export default getters
